import request from '@/utils/request'

// 查询书法家地区关联列表
export function listCalligrapherregions(query) {
  return request({
    url: '/system/calligrapherregions/list',
    method: 'get',
    params: query
  })
}

// 查询书法家地区关联详细
export function getCalligrapherregions(calligrapherRegionId) {
  return request({
    url: '/system/calligrapherregions/' + calligrapherRegionId,
    method: 'get'
  })
}

// 新增书法家地区关联
export function addCalligrapherregions(data) {
  return request({
    url: '/system/calligrapherregions',
    method: 'post',
    data: data
  })
}

// 修改书法家地区关联
export function updateCalligrapherregions(data) {
  return request({
    url: '/system/calligrapherregions',
    method: 'put',
    data: data
  })
}

// 删除书法家地区关联
export function delCalligrapherregions(calligrapherRegionId) {
  return request({
    url: '/system/calligrapherregions/' + calligrapherRegionId,
    method: 'delete'
  })
}
